CryptoJS = require("crypto-js")

function b(data) {
        for (var n = "", t = 0; t < data.r.length; t++) {
            var o = data.e ^ data.r.charCodeAt(t);
            n += String.fromCharCode(o)
        }
        return encodeURIComponent(n)
    }

function a(x) {
        return Math.ceil(x * Math.random())
    }

function acvs() {
        var kk = a(1e3);
        var data = {
            r: "I LOVE PYTHON",
            e: kk,
            i: "62bs819idl00oac2",
            k: "0123456789abcdef"
        }

        return b(data);
}

console.log("加密文本：" + acvs())